
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>方法 · Qcanvas V1.0使用文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="lizhicheng">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sidebar-style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-auto-scroll-table/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code-editor/editor.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../example/style/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../qtextlei.html" />
    
    
    <link rel="prev" href="shu-xing.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Qcanvas说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../qcanvas.html">
            
                <a href="../qcanvas.html">
            
                    
                    Qcanvas类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="shu-xing.html">
            
                <a href="shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="fang-fa.html">
            
                <a href="fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../qtextlei.html">
            
                <a href="../qtextlei.html">
            
                    
                    Qtext类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../qtextlei/shu-xing.html">
            
                <a href="../qtextlei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../qtextlei/fang-fa.html">
            
                <a href="../qtextlei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../qlinelei.html">
            
                <a href="../qlinelei.html">
            
                    
                    Qline类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../qlinelei/shu-xing.html">
            
                <a href="../qlinelei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../qlinelei/fang-fa.html">
            
                <a href="../qlinelei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../qrectlei.html">
            
                <a href="../qrectlei.html">
            
                    
                    Qrect类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../qrectlei/shu-xing.html">
            
                <a href="../qrectlei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../qrectlei/fang-fa.html">
            
                <a href="../qrectlei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../qarclei.html">
            
                <a href="../qarclei.html">
            
                    
                    Qarc类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../qarclei/shu-xing.html">
            
                <a href="../qarclei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../qarclei/fang-fa.html">
            
                <a href="../qarclei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../qanimationlei.html">
            
                <a href="../qanimationlei.html">
            
                    
                    Qanimation类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../qanimationlei/shu-xing.html">
            
                <a href="../qanimationlei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../qanimationlei/fang-fa.html">
            
                <a href="../qanimationlei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../qimglei.html">
            
                <a href="../qimglei.html">
            
                    
                    Qimg类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../qimglei/shu-xing.html">
            
                <a href="../qimglei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../qimglei/fang-fa.html">
            
                <a href="../qimglei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../qspiritlei.html">
            
                <a href="../qspiritlei.html">
            
                    
                    Qspirit类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../qspiritlei/shu-xing.html">
            
                <a href="../qspiritlei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../qspiritlei/fang-fa.html">
            
                <a href="../qspiritlei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../qshapelei.html">
            
                <a href="../qshapelei.html">
            
                    
                    Qshape类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../qshapelei/shu-xing.html">
            
                <a href="../qshapelei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../qlayerlei.html">
            
                <a href="../qlayerlei.html">
            
                    
                    Qlayer类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../shu-xing.html">
            
                <a href="../shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../fang-fa.html">
            
                <a href="../fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../qgrouplei.html">
            
                <a href="../qgrouplei.html">
            
                    
                    Qgroup类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../qgrouplei/fang-fa.html">
            
                <a href="../qgrouplei/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../qpolygonlei.html">
            
                <a href="../qpolygonlei.html">
            
                    
                    Qpolygon类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../qpolygonlei/shu-xing.html">
            
                <a href="../qpolygonlei/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../qquadraticCurve.html">
            
                <a href="../qquadraticCurve.html">
            
                    
                    QquadraticCurve类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../qquadraticCurve/shu-xing.html">
            
                <a href="../qquadraticCurve/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../qquadraticCurve/fang-fa.html">
            
                <a href="../qquadraticCurve/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../qbezierCurve.html">
            
                <a href="../qbezierCurve.html">
            
                    
                    QbezierCurve类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../qbezierCurve/shu-xing.html">
            
                <a href="../qbezierCurve/shu-xing.html">
            
                    
                    属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../qbezierCurve/fang-fa.html">
            
                <a href="../qbezierCurve/fang-fa.html">
            
                    
                    方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >方法</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <table>
<thead>
<tr>
<th>&#x5E8F;&#x53F7;</th>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><del>animationFrame</del></td>
<td><del>requestAnimationFrame&#x65B9;&#x6CD5;&#x91CD;&#x5199;&#xFF08;&#x517C;&#x5BB9;&#x5404;&#x7C7B;&#x6D4F;&#x89C8;&#x5668;&#xFF09;</del>&#x5DF2;&#x5E9F;&#x5F03; &#x73B0;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;window.requestNextAnimationFrame&#x65B9;&#x6CD5;&#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>2</td>
<td>start</td>
<td>&#x542F;&#x52A8;&#x65B9;&#x6CD5;&#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>3</td>
<td>clear</td>
<td>&#x6E05;&#x9664;&#x753B;&#x5E03;&#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>4</td>
<td>extend</td>
<td>&#x5BF9;&#x8C61;&#x5C5E;&#x6027;&#x7684;&#x91CD;&#x7F6E;&#x65B9;&#x6CD5;&#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>5</td>
<td>paint</td>
<td>&#x7ED8;&#x5236;&#x5143;&#x7D20;&#x7684;&#x65B9;&#x6CD5;&#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>6</td>
<td>pushElements</td>
<td>&#x5143;&#x7D20;&#x751F;&#x6210;&#x552F;&#x4E00;Id&#x5E76;&#x653E;&#x5230;elements&#x6570;&#x7EC4;&#x4E2D; &#xFF08;&#x6838;&#x5FC3;&#x5E93;&#x4E2D;&#x7684;&#x65B9;&#x6CD5; &#x5916;&#x90E8;&#x8C03;&#x7528;&#x4E00;&#x822C;&#x7528;&#x4E0D;&#x5230;&#xFF09;</td>
</tr>
<tr>
<td>7</td>
<td>getEleById</td>
<td>&#x901A;&#x8FC7;Id&#x83B7;&#x53D6;&#x5230;&#x5143;&#x7D20;&#x5BF9;&#x8C61;</td>
</tr>
<tr>
<td>8</td>
<td>load</td>
<td>&#x52A0;&#x8F7D;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x65B9;&#x6CD5;(&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x65B0;&#x7684;loadImgSource&#x65B9;&#x6CD5;)</td>
</tr>
<tr>
<td>9</td>
<td>getSourceByName</td>
<td>&#x901A;&#x8FC7;&#x540D;&#x79F0;&#x5F97;&#x5230;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x5BF9;&#x8C61;</td>
</tr>
<tr>
<td>10</td>
<td>getEleById</td>
<td>&#x901A;&#x8FC7;Id&#x5F97;&#x5230;&#x5143;&#x7D20;&#x5BF9;&#x8C61;</td>
</tr>
<tr>
<td>11</td>
<td>removeEle</td>
<td>&#x5220;&#x9664;&#x5143;&#x7D20;&#x5BF9;&#x8C61;&#xFF08;&#x53C2;&#x6570;&#x662F;&#x5143;&#x7D20;&#x5BF9;&#x8C61;&#xFF09;</td>
</tr>
<tr>
<td>12</td>
<td>getIndexById</td>
<td>&#x901A;&#x8FC7;Id&#x5F97;&#x5230;&#x5143;&#x7D20;&#x5728;elements&#x6570;&#x7EC4;&#x4E2D;&#x7684;&#x7D22;&#x5F15;</td>
</tr>
<tr>
<td>13</td>
<td>lower</td>
<td>&#x628A;&#x5143;&#x7D20;&#x964D;&#x4F4E;&#x4E00;&#x4E2A;&#x5C42;&#x7EA7; (&#x53C2;&#x6570;&#x4E3A;&#x5143;&#x7D20;&#x5BF9;&#x8C61;)</td>
</tr>
<tr>
<td>14</td>
<td>lowerToBottom</td>
<td>&#x628A;&#x5143;&#x7D20;&#x5C42;&#x7EA7;&#x7F6E;&#x5E95;(&#x53C2;&#x6570;&#x4E3A;&#x5143;&#x7D20;&#x5BF9;&#x8C61;)</td>
</tr>
<tr>
<td>15</td>
<td>raise</td>
<td>&#x628A;&#x5143;&#x7D20;&#x63D0;&#x9AD8;&#x4E00;&#x4E2A;&#x5C42;&#x7EA7;(&#x53C2;&#x6570;&#x4E3A;&#x5143;&#x7D20;&#x5BF9;&#x8C61;)</td>
</tr>
<tr>
<td>16</td>
<td>raiseToTop</td>
<td>&#x628A;&#x5143;&#x7D20;&#x5C42;&#x7EA7;&#x7F6E;&#x9876;(&#x53C2;&#x6570;&#x4E3A;&#x5143;&#x7D20;&#x5BF9;&#x8C61;)</td>
</tr>
<tr>
<td>17</td>
<td>destroy</td>
<td>&#x6E05;&#x9664;&#x753B;&#x5E03;&#x6240;&#x6709;&#x5143;&#x7D20;</td>
</tr>
<tr>
<td>18</td>
<td>loadImgSource</td>
<td>&#x52A0;&#x8F7D;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x65B9;&#x6CD5;</td>
</tr>
<tr>
<td>19</td>
<td>removeEleById</td>
<td>&#x5220;&#x9664;&#x5143;&#x7D20;&#x5BF9;&#x8C61;&#xFF08;&#x53C2;&#x6570;&#x662F;&#x5143;&#x7D20;id&#xFF09;</td>
</tr>
</tbody>
</table>
<blockquote>
<h5 id="1&#x3001;requestanimationframe">1&#x3001;<del>requestAnimationFrame</del></h5>
<p><del>&#x4E00;&#x662F;&#x628A;&#x5404;&#x6D4F;&#x89C8;&#x5668;&#x524D;&#x7F00;&#x8FDB;&#x884C;&#x7EDF;&#x4E00;&#xFF0C;&#x4E8C;&#x662F;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E0D;&#x652F;&#x6301;requestAnimationFrame&#x65B9;&#x6CD5;&#x65F6;&#x5C06;&#x5176;&#x6307;&#x5411;setTimeout&#x65B9;&#x6CD5;&#x3002;</del>
&#x5DF2;&#x5E9F;&#x5F03; &#x73B0;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;window.requestNextAnimationFrame&#x65B9;&#x6CD5;</p>
</blockquote>
<hr>
<blockquote>
<h5 id="2&#x3001;start">2&#x3001;start</h5>
<p>&#x542F;&#x52A8;&#x65B9;&#x6CD5;&#xFF0C;&#x6846;&#x67B6;&#x7684;&#x542F;&#x52A8;&#x5165;&#x53E3;&#x3002;
this.start();</p>
</blockquote>
<hr>
<blockquote>
<h5 id="3&#x3001;clear">3&#x3001;clear</h5>
<p>&#x6E05;&#x9664;&#x753B;&#x5E03;
this.clear();</p>
</blockquote>
<hr>
<blockquote>
<h5 id="4&#x3001;extend">4&#x3001;extend</h5>
<p>&#x5BF9;&#x8C61;&#x5C5E;&#x6027;&#x7684;&#x91CD;&#x7F6E;&#x65B9;&#x6CD5;</p>
<pre><code>Qcanvas.prototype.extend = function(o,n){
    for(var i in n){
        (i != &apos;TYPE&apos;) &amp;&amp; (o[i] = n[i]);        
    }
    this.pushElements(o);
}
o:&#x9ED8;&#x8BA4;&#x5BF9;&#x8C61;&#xFF0C;n:&#x8981;&#x521B;&#x5EFA;&#x7684;&#x5BF9;&#x8C61;
</code></pre></blockquote>
<hr>
<blockquote>
<h5 id="5&#x3001;paint">5&#x3001;paint</h5>
<p>&#x5FAA;&#x73AF;elements&#x5143;&#x7D20;&#x6570;&#x7EC4;&#xFF0C;&#x6839;&#x636E;&#x6BCF;&#x4E2A;&#x5BF9;&#x8C61;&#x7684;TYPE&#x7C7B;&#x578B; &#x5206;&#x522B;&#x4F7F;&#x7528;&#x4E0D;&#x540C;&#x7ED8;&#x5236;&#x65B9;&#x6CD5;&#x5C06;&#x5BF9;&#x8C61;&#x7ED8;&#x5236;&#x5230;&#x753B;&#x5E03;&#x4E0A; </p>
</blockquote>
<hr>
<blockquote>
<h5 id="6&#x3001;pushelements">6&#x3001;pushElements</h5>
<p>&#x5143;&#x7D20;&#x751F;&#x6210;&#x552F;&#x4E00;Id&#x5E76;&#x653E;&#x5230;elements&#x6570;&#x7EC4;&#x4E2D; </p>
</blockquote>
<hr>
<blockquote>
<h5 id="7&#x3001;getelebyid">7&#x3001;getEleById</h5>
<p>&#x901A;&#x8FC7;Id&#x83B7;&#x53D6;&#x5230;&#x5143;&#x7D20;&#x5BF9;&#x8C61;</p>
</blockquote>
<hr>
<blockquote>
<h5 id="8&#x3001;load">8&#x3001;load</h5>
<p>&#x52A0;&#x8F7D;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x65B9;&#x6CD5; 
&#x63A5;&#x6536;&#x53C2;&#x6570;&#xFF08;sourceObj,callback&#xFF09;
sourceObj&#xFF1A;&#x8D44;&#x6E90;&#x5BF9;&#x8C61; &#x4F8B;{&quot;a&quot;:&quot;<a href="http://www.abc.com/a.jpg&quot;}" target="_blank">http://www.abc.com/a.jpg&quot;}</a>
callback&#xFF1A;&#x8D44;&#x6E90;&#x52A0;&#x8F7D;&#x5B8C;&#x6210;&#x56DE;&#x8C03;&#x51FD;&#x6570;</p>
</blockquote>
<hr>
<blockquote>
<h5 id="9&#x3001;getsourcebyname">9&#x3001;getSourceByName</h5>
<p>&#x901A;&#x8FC7;&#x540D;&#x79F0;&#x5F97;&#x5230;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x5BF9;&#x8C61;
&#x63A5;&#x6536;&#x53C2;&#x6570;&#x7C7B;&#x578B; String</p>
<h5 id="18&#x3001;loadimgsource">18&#x3001;loadImgSource</h5>
<p>&#x52A0;&#x8F7D;&#x56FE;&#x7247;&#x8D44;&#x6E90;&#x65B9;&#x6CD5;
&#x63A5;&#x6536;&#x53C2;&#x6570;&#xFF08;url&#xFF09; 
url:&#x8D44;&#x6E90;&#x5730;&#x5740;&#xFF08;&#x53EF;&#x4EE5;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#x6216;&#x6570;&#x636E;&#xFF09;[&apos;<a href="http://www.abc.com/a.jpg&apos;]&#x6216;&apos;http://www.abc.com/a.jpg" target="_blank">http://www.abc.com/a.jpg&apos;]&#x6216;&apos;http://www.abc.com/a.jpg</a>&apos;
&#x8BE5;&#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x7C7B;Promise&#x5BF9;&#x8C61;  &#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x7528;.then &#x7F16;&#x5199;&#x4E0B;&#x4E00;&#x6B65;&#x903B;&#x8F91; </p>
</blockquote>
<footer class="page-footer"><span class="copyright">&#xA9; Qcanvas all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-07-28 16:45:45
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="shu-xing.html" class="navigation navigation-prev " aria-label="Previous page: 属性">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../qtextlei.html" class="navigation navigation-next " aria-label="Next page: Qtext类">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"方法","level":"1.2.2","depth":2,"next":{"title":"Qtext类","level":"1.3","depth":1,"path":"qtextlei.md","ref":"qtextlei.md","articles":[{"title":"属性","level":"1.3.1","depth":2,"path":"qtextlei/shu-xing.md","ref":"qtextlei/shu-xing.md","articles":[]},{"title":"方法","level":"1.3.2","depth":2,"path":"qtextlei/fang-fa.md","ref":"qtextlei/fang-fa.md","articles":[]}]},"previous":{"title":"属性","level":"1.2.1","depth":2,"path":"qcanvas/shu-xing.md","ref":"qcanvas/shu-xing.md","articles":[]},"dir":"ltr"},"config":{"plugins":["expandable-chapters-small","tbfed-pagefooter","sidebar-style","auto-scroll-table","code-editor","code","lightbox"],"styles":{"website":"example/style/website.css"},"pluginsConfig":{"sidebar-style":{"author":"志成","title":"Qcanvas V1.0使用文档"},"tbfed-pagefooter":{"copyright":"&copy Qcanvas","modify_label":"文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"search":{},"auto-scroll-table":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code-editor":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"lightbox":{"jquery":true,"sameUuid":false},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"lizhicheng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Qcanvas V1.0使用文档","output.name":"Qcanvas V1.0使用文档","gitbook":"*","description":"Qcanvas V1.0使用文档"},"file":{"path":"qcanvas/fang-fa.md","mtime":"2021-07-28T08:45:45.227Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-05-18T10:04:11.263Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sidebar-style/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-auto-scroll-table/plugin.js"></script>
        
    
        
        <script src="http://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code-editor/editor.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

